Skip to content

Refactor CLI into nested structure#717

Merged
sjmonson merged 2 commits intomainfrom
cleanup/cli_nested
May 6, 2026
Merged

Refactor CLI into nested structure#717
sjmonson merged 2 commits intomainfrom
cleanup/cli_nested

Conversation

@sjmonson
Copy link
Copy Markdown
Collaborator

@sjmonson sjmonson commented May 4, 2026

Summary

Migrates CLI code out of __main__.py and into its own submodule.

Details

The PR is purely refactoring. Making this change now will make the incoming CLI refactor a little cleaner to review.

Test Plan

Run any existing CLI commands to confirm functionality.


  • "I certify that all code in this PR is my own, except as noted below."

Use of AI

  • Includes AI-assisted code completion
  • Includes code generated by an AI application
  • Includes AI-generated tests (NOTE: AI written tests should have a docstring that includes ## WRITTEN BY AI ##)

Copy link
Copy Markdown
Collaborator

@dbutenhof dbutenhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's hard to review this sort of refactoring without simply trusting that it's mostly a cut-and-paste; but that appears to be essentially the case, (and so I've avoided making some random commentary along the way that would equally apply to the current code) ... so I've really just got one minor comment comment...

Comment thread src/guidellm/__main__.py Outdated
@sjmonson sjmonson force-pushed the feat/arg_parser branch from 0889559 to 5402c02 Compare May 5, 2026 18:36
Signed-off-by: Samuel Monson <smonson@redhat.com>
@sjmonson sjmonson force-pushed the cleanup/cli_nested branch from 9237c13 to 4d947e6 Compare May 6, 2026 15:39
@sjmonson sjmonson force-pushed the feat/arg_parser branch from 169b9da to ce8ab03 Compare May 6, 2026 15:40
@sjmonson sjmonson force-pushed the cleanup/cli_nested branch from 4d947e6 to 2fa9cca Compare May 6, 2026 15:40
dbutenhof
dbutenhof previously approved these changes May 6, 2026
Base automatically changed from feat/arg_parser to main May 6, 2026 15:52
@sjmonson sjmonson dismissed dbutenhof’s stale review May 6, 2026 15:52

The base branch was changed.

Signed-off-by: Samuel Monson <smonson@redhat.com>
@sjmonson sjmonson requested a review from dbutenhof May 6, 2026 15:58
@sjmonson sjmonson force-pushed the cleanup/cli_nested branch from da054fb to 5dff887 Compare May 6, 2026 15:58
@sjmonson sjmonson merged commit b10901d into main May 6, 2026
11 checks passed
@sjmonson sjmonson deleted the cleanup/cli_nested branch May 6, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants